package cc.ccoke.swingutils.phone_number.main;

import cc.ccoke.swingutils.phone_number.gui.PhoneNumberGUI;

import javax.swing.*;
import java.awt.*;

/**
 * @Author: ccoke
 * @Description:
 * @Date: Created in 下午5:44 18-6-14
 **/
public class PhoneNumberApplication {
    private static final String TITLE = "电话号码过滤";
    public static void main(String[] args) {
        JFrame frame = new JFrame(TITLE);
        frame.setContentPane(new PhoneNumberGUI().getParentPanel());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        // 得到显示器屏幕的宽高
        int width = Toolkit.getDefaultToolkit().getScreenSize().width;
        int height = Toolkit.getDefaultToolkit().getScreenSize().height;
        frame.setBounds((width - 400) / 2,
                (height - 300) / 2, 400, 300);
        frame.pack();
        frame.setVisible(true);
    }
}
